package com.erdos.message.vo;

import java.io.Serializable;
import java.text.DateFormat;
import java.text.ParsePosition;
import java.text.SimpleDateFormat;
import java.util.Date;

import org.apache.commons.lang.builder.ToStringBuilder;

public class L2MessageHeader implements Serializable {
	private static final long serialVersionUID = -9204023845673858087L;
	/**
	 * assigned message type id.
	 */
	private  String messageTypeId;
	/**
	 * message id of this message
	 */
//	private String messageId;
	/**
	 * saves the source message type id when reply to a request
	 */
//	private String correlationMessageTypeId;

	/**
	 * correlated message id, it indicates the source message id to be replied to.
	 */
//	private String correlationMessageId;	

	/**
	 * message send date.<br>
	 * format: YYYYMMDD
	 */
//	private String sendDate;
	/**
	 * message send time.<br>
	 * format: HH24MISS
	 */
//	private String sendTime;
	/**
	 * who sends this message
	 */
	private String sender;
	/**
	 * who is expected to receive this message
	 */
	private String receiver;

	/**
	 * length of this message, includes the header and body, used in fixed length message.
	 */
//	private Integer length=-1;
	
	/*
	 * 炼钢二级新增
	 */
	private String msg_status;
	private String msg_date;
	private String id;

	/**
	 * @return the messageTypeId
	 */
	public String getMessageTypeId() {
		return messageTypeId;
	}
	/**
	 * @param messageTypeId the messageTypeId to set
	 */
	public void setMessageTypeId(String messageTypeId) {
		this.messageTypeId = messageTypeId;
	}
	/**
	 * @return the sender
	 */
	public String getSender() {
		return sender;
	}
	/**
	 * @param sender the sender to set
	 */
	public void setSender(String sender) {
		this.sender = sender;
	}
	/**
	 * @return the receiver
	 */
	public String getReceiver() {
		return receiver;
	}
	/**
	 * @param receiver the receiver to set
	 */
	public void setReceiver(String receiver) {
		this.receiver = receiver;
	}
	/**
	 * @return the length
	 */
	public String getMsg_status() {
		return msg_status;
	}
	public void setMsg_status(String msg_status) {
		this.msg_status = msg_status;
	}
	public String getMsg_date() {
		return msg_date;
	}
	public void setMsg_date(String msg_date) {
		this.msg_date = msg_date;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String toString() {
		return new ToStringBuilder(this).append(this.messageTypeId)//.append(this.messageId)
			//.append(this.correlationMessageTypeId).append(this.correlationMessageId)
			.append(this.sender).append(this.receiver)//.append(this.sendDate).append(this.sendTime)
			.toString();
	}
}
